<%@ page import="com.webtest.tokentest.TokenProcessor" %>
<%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 2018/8/8
  Time: 14:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Index</title>
</head>
<body>
<%--<%--%>
<%--String uid = String.valueOf(RandomUtils.nextLong());--%>
<%--session.setAttribute("token",uid);--%>
<%--%>--%>
<form action="<%=request.getContextPath()%>/tokenServlet" method="post">
    <input type="hidden" name="TOKEN_KEY" value="<%=TokenProcessor.getInstance().saveToken(request)%>">
    name:<input type="text" name="name">
    <input type="submit" value="Submit">
</form>
</body>
</html>
